Nginx'sifdirectivedoeshavesomeweirdnessinpractice.Andpeoplemaymisuseitwhentheydonothaveenoughknowledgeaboutitsbehavior.Inthispost,I'llanalyzesomeexamplesheresuchthatpeoplemaygetsomelightanduseitcorrectly. Inshort,Nginx's"if"blockeffectivelycreatesa(nested)locationblockandoncethe"if"conditionmatches,...